﻿// 作者: du白
// 邮箱: weichen0716@163.com

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebPrinter.Library.DaQu;

namespace WebPrinter.Library
{
    public static class PrinterClientFactory
    {
        public static IPrinterClient Create(PrinterBrand brand, string appId, string appSecret)
        {
            return brand switch
            {
                PrinterBrand.Daqu => new DaquPrinterClient(appId, appSecret),
                // PrinterBrand.Xinye => new XinyePrinterClient(appId, appSecret),
                // ...
                _ => throw new NotSupportedException("不支持的打印机品牌")
            };
        }
    }
}
